IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[or_MatchMentorReject]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE dbo.[or_MatchMentorReject]
Go

CREATE  PROCEDURE  dbo.[or_MatchMentorReject]  
	@MenteeID int,
	@MentorID int 
AS


UPDATE  MentorMentee SET  AcceptedByMentorDateTime = null ,  LastModDate = GETDATE() , IsAccepted = 0 
WHERE MenteeID = @MenteeID and MentorID = MentorID
